package com.spring.learn.springboot._01;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * bean创建完毕后的操作
 * bean销毁的操作
 */
public class BeanInitAndClose01 implements InitializingBean,DisposableBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("bean初始化完毕");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("bean销毁完毕");

    }
}
